import Vue from "vue";
import App from "./App.vue";
//引入VueRouter
import VueRouter from "vue-router";
//引入路由器
import router from "./router";
//引入全局样式表
import "./assets/css/global.css";
//按需引入element-ui组件文件
import "./plugins/element";
//引入字体图标
import "./assets/fonts/iconfont.css";
//引入axios
import axios from "axios";
//配置请求的根路径
axios.defaults.baseURL='http://127.0.0.1:8888/api/private/v1/'

Vue.config.productionTip = false;
//应用插件
Vue.use(VueRouter);



//将axios包挂载到vue原型对象上
Vue.prototype.$http = axios;

new Vue({
  router: router,
  render: (h) => h(App),
}).$mount("#app");
